﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Labthink.PCSoft.UniversalHost4.DataAccess
{
    public class FileInfo
    {
        public string Md5 { get; set; }

        /// <summary>
        /// 文件名称
        /// </summary>
        public string FileName { get; set; }
        /// <summary>
        /// 文件全路径名
        /// </summary>
        public string FullName { get; set; }
        /// <summary>
        /// 文件大小
        /// </summary>
        public long FileSize { get; set; }
        /// <summary>
        /// 拆分文件包大小(建议不能大于1024)
        /// </summary>
        public int PackSize { get; set; }
        /// <summary>
        /// 尾包大小
        /// </summary>
        public int LastPackSize { get; set; }
        /// <summary>
        /// 拆分文件包数量
        /// </summary>
        public long PackCount { get; set; }
        /// <summary>
        /// 是否允许修改文件名
        /// </summary>
        public bool CanChange { get; set; }
        /// <summary>
        /// 是否记录文件信息
        /// </summary>
        public bool IsRecord { get; set; }

        /// <summary>
        /// 是否通知本地其他程序
        /// </summary>
        public bool IsSendLocal { get; set; }
        /// <summary>
        /// 是否通知其他远程程序
        /// </summary>
        public bool IsSendRemote { get; set; }
        /// <summary>
        /// 文件有效期（天）
        /// </summary>
        public int FileIndate { get; set; }
        /// <summary>
        /// 文件操作
        /// </summary>
        public ActionEnum Action { get; set; }

        public string Tag { get; set; }
    }

    public enum ActionEnum
    {
        Save = 0,//保存
        PrintOnly = 1,//打印
        DownloadOnly = 2,//下载
        SavePrint = 3,//保存打印
        SaveDownload = 4,//保存下载
        PrintDownload = 5,//打印下载
        All = -1//全部处理
    }
}
